package coding.unit5;

/**
 * @author Wang Renlei
 * @Date 2020/2/17
 */

class Cup {
    Cup(int k) {
        System.out.println("Cup--" + k);
    }

    void f(int k) {
        System.out.println("f()--" + k);
    }
}

class Cups {
    static Cup cup1;
    static Cup cup2;

    static {
        cup1 = new Cup(1);
        cup2 = new Cup(2);
    }

    Cups() {
        System.out.println("Cups()");
    }
}

public class ExplicitStatic {
    public static void main(String[] args) {
        System.out.println("inside main");
//        Cups.cup1.f(99);
    }
    static Cups cups1 = new Cups();
    static Cups cups2 = new Cups();
}
